import base from '@/api/baseurl';
import request from '@/utils/request'


//  9. 出参的查询 /ts/findOutOfTheGinseng
//   10.出参的新增/ts/addOutOfTheGinsengM 
//   11.出参的修改 /ts/updateOutOfTheGinseng  
//   12./ts/delOutOfTheGinseng 出参的删除 

//   14.出参顺序的自增 /ts/addOutOfTheGinseng


/**
 * 出参顺序的自增
 * @param {*} query 
 * @returns 
 */
export function addOutOfTheGinseng(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/addOutOfTheGinseng',
    method: 'get',
    params: query
  })
}

/**
 * 出参-查询
 * @param {*} query 
 * @returns 
 */
 export function findOutOfTheGinseng(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/findOutOfTheGinseng',
    method: 'get',
    params: query
  })
}

/**
 * 出参-删除
 * @param {*} query 
 * @returns 
 */
 export function delOutOfTheGinseng(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/delOutOfTheGinseng',
    method: 'get',
    params: query
  })
}

/**
 * 出参-增加
 * @param {*} query 
 * @returns 
 */
export function addOutOfTheGinsengM(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/addOutOfTheGinsengM',
    method: 'post',
    data
  })
}

/**
 * 出参-修改
 * @param {*} query 
 * @returns 
 */
export function updateOutOfTheGinseng(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/updateOutOfTheGinseng',
    method: 'post',
    data
  })
}


/**
 * 入参类型-出参类型
 * @param {*} query 
 * @returns 
 */
 export function enterTheParameter(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/enterTheParameter',
    method: 'get',
    params: query
  })
}
